<template>
  <div>
    <el-container>
      <el-aside :width="isCollapse?'300':''">
        <div class="logobox" v-if="!isCollapse">评价系统</div>
        <el-menu
          :default-openeds="['1', '3']"
          :default-active="$route.path"
          router
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          :collapse="isCollapse"
        >
          <!-- <el-menu-item index="/Home">
            <i class="el-icon-house"></i>
            <span slot="title">主页</span>
          </el-menu-item>-->
          <el-menu-item index="/bumen">
            <i class="el-icon-user"></i>
            <span slot="title">职能部门配置</span>
          </el-menu-item>
          <el-menu-item index="/chengshi">
            <i class="el-icon-office-building"></i>
            <span slot="title">城市公司配置</span>
          </el-menu-item>
          <el-menu-item index="/fuwu">
            <i class="el-icon-service"></i>
            <span slot="title">服务质量配置</span>
          </el-menu-item>
          <el-menu-item index="/hexin">
            <i class="el-icon-edit-outline"></i>
            <span slot="title">核心工作配置</span>
          </el-menu-item>
          <el-menu-item index="/zhineng">
            <i class="el-icon-pie-chart"></i>
            <span slot="title">职能互评配置</span>
          </el-menu-item>
          <!-- <el-menu-item index="/xiaozu">
            <i class="el-icon-document"></i>
            <span slot="title">小组配置</span>
          </el-menu-item>-->
          <el-menu-item index="/xiaozupingce">
            <i class="el-icon-document"></i>
            <span slot="title">小组测评配置</span>
          </el-menu-item>

          <el-menu-item index="/renyuan">
            <i class="el-icon-set-up"></i>
            <span slot="title">人员配置</span>
          </el-menu-item>
          <el-menu-item index="/wenjuan">
            <i class="el-icon-notebook-2"></i>
            <span slot="title">问卷配置</span>
          </el-menu-item>
          <!-- <el-menu-item index="/lishi">
            <i class="el-icon-set-up"></i>
            <span slot="title">问卷评价历史</span>
          </el-menu-item>
          <el-menu-item index="/tongji">
            <i class="el-icon-pie-chart"></i>
            <span slot="title">问卷评价统计</span>
          </el-menu-item>-->
        </el-menu>
      </el-aside>
      <el-container>
        <el-header style="text-align: right; font-size: 12px">
          <sidebar :isCollapse.sync="isCollapse" />
        </el-header>
        <el-container>
          <el-main>
            <router-view />
          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import sidebar from "@/components/sidebar";

export default {
  data() {
    const item = {
      date: "2016-05-02",
      name: "王小虎",
      address: "上海市普陀区金沙江路 1518 弄",
    };
    return {
      navname: "",
      isCollapse: false,
      tableData: Array(20).fill(item),
    };
  },
  components: {
    sidebar,
  },

  mounted() {
    let that = this;
  },

  methods: {},
};
</script>


<style>
 

.el-container {
  height: 91vh;
}

.logobox {
  font-size: 18px;
  color: #fff;
  text-align: center;
  line-height: 60px;
  padding-bottom: 1px;
}

.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
.el-menu {
  border-right: 0 !important;
}

.fl {
  float: left;
}

.fontshow {
  font-size: 24px;
  margin-top: 15px;
}

body {
  margin: 0;
  background: #f8faff;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  background: #f8faff;
  /* position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0; */
}
#app a {
  color: #fff;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}
.breadcrumb a {
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
a {
  text-decoration: none;
}

.el-header {
  background-color: #fff;

  line-height: 60px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.el-aside {
  color: #333;
  height: calc(100vh);
  background: #545c64;
}

.breadcrumb {
  width: 50%;
  margin-top: 20px;
  margin-left: 5px;
  float: left;
}

.pagebox {
  margin-top: 30px;
  text-align: right;
}
</style>
